From 2ceaa4a6643080d17a13b701ae7826bc3fb57e39 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 4 Apr 2001 20:13:07 +0000 Subject: [PATCH] (c-outline-level): Bind buffer-invisibility-spec. Originally from Dave Love, but got lost when incorporating version 5.26. --- lisp/progmodes/cc-cmds.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index ae905c08d86..70195e4cb56 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -1283,9 +1283,11 @@ sentence motion in or near comments and multiline strings." ;; used by outline-minor-mode (defun c-outline-level () - (save-excursion - (skip-chars-forward "\t ") - (current-column))) + ;; This so that `current-column' DTRT in otherwise-hidden text. + (let (buffer-invisibility-spec) + (save-excursion + (skip-chars-forward "\t ") + (current-column)))) (defun c-up-conditional (count) -- 2.30.2